const Main_Option = {
  headerAlign: "center",
  align: "center",
  border: true,
  index: true,
  menuWidth: 150,
  // editBtn: false,
  // delBtn: false,
  editBtnIcon: ' ',
  delBtnIcon: ' ',
  // dialogMenuPosition: 'center',
  // defaultExpandAll:true,
  column: [
    {
      label: "账号",
      prop: "username",
      search: true,
      rules: [{
        required: true,
        message: "请输入账号",
        trigger: "blur"
      }],
      editDisabled: true,
    },
    {
      label: "密码",
      prop: "password",
      rules: [{
        required: true,
        message: "请输入密码",
        trigger: "blur"
      }],
    },
    {
      label: "状态",
      prop: "state",
      type: 'select',
      search: true,
      dicData: [
        {
          label: '正常',
          value: 1,
        },
        {
          label: '禁用',
          value: 0,
        }
      ],
      rules: [{
        required: true,
        message: "请选择状态",
        trigger: "blur"
      }],
    },
    {
      label: "新建时间",
      prop: "createdAt",
      display: false,
    },
    {
      label: "最后更新时间",
      prop: "updatedAt",
      display: false,
    },
  ]
}

const Main_Data = []


const Users_Option = {
  headerAlign: "center", // 表头布局
  align: "center", // 表格全局布局
  border: true, // 是否开启表格框
  menuWidth: 150, // 操作栏宽度
  // editBtn: false,
  // delBtn: false,
  editBtnIcon: ' ', // 编辑按钮图标
  delBtnIcon: ' ', // 删除按钮图标
  // dialogMenuPosition: 'center',
  // defaultExpandAll:true,
  index: true, // 开启表格序号
  column: [

    {
      label: "昵称",
      prop: "nickName",
      // search: true, // 开启搜索
    },
    {
      label: "账号",
      prop: "userName",
      search: true, // 是否开启搜索该子段
      rules: [{
        required: true,
        message: "请输入账号",
        trigger: "blur"
      }],
      editDisabled: true,
    },
    {
      label: "头像",
      prop: "avatar",
      align: "center",
      slot: true, // 是否开启表格插槽
      // search: true, // 开启搜索
    },

    {
      label: "密码",
      prop: "userPassword",
      rules: [{
        required: true,
        message: "请输入密码",
        trigger: "blur"
      }],
    },
    {
      label: "状态",
      prop: "status",
      type: 'select',
      search: true,
      dicData: [
        {
          label: '正常',
          value: 1,
        },
        {
          label: '禁用',
          value: 0,
        }
      ],
      rules: [{
        required: true,
        message: "请选择状态",
        trigger: "blur"
      }],
    },
    {
      label: "备注",
      prop: "remarks",
    },
    {
      label: "余额/￥",
      prop: "totals",
    },
    {
      label: "新建时间",
      prop: "createdAt",
      display: false,
    },
    {
      label: "最后更新时间",
      prop: "updatedAt",
      display: false,
    },
  ]
}

const Users_Data = [];

const Shoppingcart_Option = {
  headerAlign: "center",
  align: "center",
  border: true,
  index: true,
  // selection: true,
  // reserveSelection: true,
  menuWidth: 150,
  addBtn: false, //新增
  // editBtn: false,
  delBtn: false,
  editBtnIcon: ' ',
  delBtnIcon: ' ',
  // dialogMenuPosition: 'center',
  // defaultExpandAll:true,
  column: [
    {
      label: "商品名称",
      prop: "title",
      search: true, // 开启搜索
      disabled: true,
      rules: [
        {
          required: true,
          message: "请输入商品名称",
          trigger: "blur",
        },
      ],
    },
    {
      label: "商品图",
      prop: "defaultImg",
      align: "center",
      slot: true, // 是否开启表格插槽
      disabled: true,
      display: false, // 是否隐藏
    },
    {
      label: "商品详情",
      prop: "decs",
      type: "textarea",
      overHidden: true, // 是否隐藏
      disabled: true,
      span: 24,
      display: false, // 是否隐藏
    },
    {
      label: "原价格/￥",
      prop: "price",
      disabled: true,
      display: false, // 是否隐藏
      rules: [
        {
          required: true,
          trigger: ["change", "blur"],
        },
      ],
    },
    {
      label: "商品数量",
      prop: "pcount",
      rules: [
        {
          required: true,
          trigger: ["change", "blur"],
        },
      ],
    },
  ]
}

const Shoppingcart_Data = []


export {
  Main_Option,
  Main_Data,
  Users_Option,
  Users_Data,
  Shoppingcart_Option,
  Shoppingcart_Data,
}
